-- GENERATED SPELL FOR [Gan'arg Sapper] --


function spell0_18827(pUnit, Event) --@Power Burn,n/a--
pUnit:FullCastSpellOnTarget(33974,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18827', 2500, 1)
end

function spell1_18827(pUnit, Event) --@Set Charge,Self--
pUnit:FullCastSpellOnTarget(33895,pUnit)
pUnit:RegisterEvent('Sorts_18827', 2000, 1)
end

function Sorts_18827(pUnit, Event)
local choix_sorts_18827 = math.random(0, 1)
if choix_sorts_18827 == 0 then
pUnit:RegisterEvent('spell0_18827', 1, 1)
end
if choix_sorts_18827 == 1 then
pUnit:RegisterEvent('spell1_18827', 1, 1)
end
end

function mob18827_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18827', math.random(1500, 3000), 1)
end

function mob18827_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18827_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18827_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18827, 1, 'mob18827_Action')
RegisterUnitEvent(18827, 2, 'mob18827_Leave')
RegisterUnitEvent(18827, 3, 'mob18827_Kill')
RegisterUnitEvent(18827, 4, 'mob18827_Die')
